<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
	http://www.springframework.org/schema/beans/spring-beans.xsd">
 
	<bean class="com.kingyea.camel.runtime.ServiceDefination">
		<property name="serviceId" 		value="${service.id}"></property>
		<#if (service.description)??>
		<property name="description"		value="${service.description}"></property>
		</#if>
		<#if (service.vendor)??>
		<property name="vendor"		value="${service.vendor}"></property>
		</#if>
		<property name="autoStart"		value="${converter.string(service.autoStart)}"></property>
		<#if (service.serviceName)??>
		<property name="serviceName"		value="${service.serviceName}"></property>
		</#if>
		<property name="businessType" 	value="${global.businessType}"></property>
		<#if (service.businessSequence)??>
		<property name="businessSequence"		value="${service.businessSequence}"></property>
		</#if>
		<#if (service.trace)??>
		<property name="trace"		value="${converter.string(service.trace)}"></property>
		</#if>
		<#if (service.enableMonitor)??>
		<property name="enableMonitor"		value="${converter.string(service.enableMonitor)}"></property>
		</#if>
		<property name="startComponent" ref="start"></property>
	</bean>
	<bean id="start" class="com.kingyea.camel.runtime.component.StartComponent">
		<property name="id"	value="start"></property>
		<property name="x"	value="50"></property>
		<property name="y"	value="30"></property>
		<property name="outputs">
			<list>
				<bean class="com.kingyea.camel.runtime.transition.Transition">
					<property name="targetRef" ref="${service.startComponentId}"></property>
				</bean>
			</list>
		</property> 
	</bean>
